<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <meta http-equiv="X-UA-Compatible" content="ie=edge" />
    <title>Document</title>
    <script src="../node_modules/vue/dist/vue.js"></script>
  </head>

  <body>
    <div id="app">
      <cpn :cinfo="info"></cpn>
    </div>

    <template id="cpn">
      <div>{{cinfo}}</div>
    </template>
    <script>
      const cpn = {
        template: "#cpn",
        props: {
          cinfo: {
            type: Object,
            require: true,
          },
        },
      };

      var vm = new Vue({
        el: "#app",
        data: {
          info: {
            name: "wzy",
            age: 12,
            height: 1.88,
          },
        },
        methods: {},
        components: {
          cpn,
        },
      });
    </script>
  </body>
</html>
